package com.example.mghotel.ui.order;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.mghotel.R;

public class OrderListFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view=inflater.inflate(R.layout.fragment_order_list,container,false);


        //获取传递的参数
        Bundle bundle=getArguments();
        if (bundle!=null){
            int orderStateId=bundle.getInt("orderStateId");

            TextView textView=view.findViewById(R.id.tv_order_test);
            textView.setText(String.valueOf(orderStateId));
        }


        return view;
    }
}
